<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./vue.js"></script>∫
</head>
<body>
    <div id="app">
        <p :title="title" :style="{ color: textColor, fontSize: size + 'px' }" >{{message}}</p>
        <button @click="change">按钮</button>
    </div>
    <script>
        const app = Vue.createApp({
            data() {
                return {
                    message:"Voldy",
                    title:"Voldy",
                    textColor:"green",
                    size:45
                }
            },
            methods: {
               change(){
                    console.log("这是change方法")
                }
            },
        }).mount("#app")
    </script>
</body>
</html>